<?php
/**
 * Author:Arthur
 * Date:2013-1-31
 * File Name:test.php
 * Email:kingarthurx@sina.cn
 * toDo: 定时器
 */
ignore_user_abort(true);
set_time_limit(0); 
function test(){
echo "不要迷恋哥，哥只是个定时器！";
echo date('h:i:s') . "<br>";
}
function just_do_it(){
test();
usleep(2000000);
}
ob_end_clean();
ob_start();//开始缓冲数据
while(1){
echo str_repeat(" ",1024);//ie有默认的1k buffer
ob_flush();
flush();
just_do_it();
}